package test;

import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleStringProperty;

public class Person {

	private final SimpleStringProperty firstName;
    private final SimpleStringProperty lastName;
    private final SimpleDoubleProperty age;

    Person(String fName, String lName, double age) {
        this.firstName = new SimpleStringProperty(fName);
        this.lastName = new SimpleStringProperty(lName);
        this.age = new SimpleDoubleProperty(age);
    }

    public String getFirstName() {
        return firstName.get();
    }

    public void setFirstName(String fName) {
        firstName.set(fName);
    }

    public String getLastName() {
        return lastName.get();
    }

    public void setLastName(String lName) {
        lastName.set(lName);
    }

    public double getAge() {
        return age.get();
    }

    public void setAge(double ag) {
        age.set(ag);
    }
}
